tinyMCE.init({
    mode: 'exact',
    elements: "content",
    theme: "advanced",
    content_css: "js/mycontent.css",
    language: "zh",
    plugins: "safari,emotions,media,advimage,inlinepopups,noneditable,codehighlighting",
    theme_advanced_buttons1: "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,fontselect,fontsizeselect,|,forecolor,backcolor",
    theme_advanced_buttons2: "cut,copy,paste,|,outdent,indent,blockquote,|,undo,redo,|,charmap,emotions,link,unlink,image,media,codehighlighting",
    theme_advanced_buttons3: "",
    theme_advanced_source_editor_width: "700",
    theme_advanced_source_editor_height: "400",
    theme_advanced_toolbar_location: "top",
    theme_advanced_toolbar_align: "left",
    theme_advanced_statusbar_location: "bottom",
    theme_advanced_resizing: false,
    relative_urls: false,
    remove_script_host: false,
    button_tile_map: true,
    invalid_elements: "script,iframe",
    width: '100%',
    height: '500px'
});
function reforumcreat(seccodetype) {
    if (document.rebbsmainform.title.value == "") {
        alert(title_empty);
        document.rebbsmainform.title.focus();
        return false
    }
    var content = tinyMCE.get('content').getContent();
    if (content.length < 20) {
        alert(content_empty);
        return false
    }
    if (seccodetype == '1' && document.rebbsmainform.seccode.value.match(/^[A-Z]{4}$/ig) == null) {
        document.rebbsmainform.seccode.focus();
        alert(seccode_empty);
        return false
    }
}